package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class ActivityRewardLog {
    //主键
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //被奖励人id
    private Long grantedId;

    //相关奖励表的ID,乘客-coupon表ID,司机-driver_reward表ID
    private Long rewardId;

    //奖励金额
    private BigDecimal rewardValue;

    //0-用户优惠券,1-司机奖励
    private Integer rewardCategory;

    //关联表ID
    private Long refId;

    //被活动类型,0-乘客活动,1-司机活动
    private Integer activityCategory;

    //司机运营区ID
    private Long driverRegionId;

    //乘客运营区ID
    private Long customerRegionId;

    //创建时间
    private Date createdAt;
}
